/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.grnt.dbcommon;

import java.sql.ResultSet;

/**
 * This interface is a generic componet for DataControler type. All types implements
 * it will give the capabilities for helping DataControler queries some data.
 * @author sayid
 */
public interface ResultBean {
	public static class FullValuesException extends Exception{

		public FullValuesException(Throwable cause) {
			super(cause);
		}

		public FullValuesException(String message, Throwable cause) {
			super(message, cause);
		}

		public FullValuesException(String message) {
			super(message);
		}

		public FullValuesException() {
		}
	}
	/**
	 *
	 * DataControler class will use this method to get a well format "select"
	 * command string.
	 * @return It reutrn a "select" command string.
	 */
	public String getQueryString();
	/**
	 *
	 * DataControler class sends result set to it and it can do some things with
	 * the result set.
	 * @param rs It recieve result set and use it to load results.
	 * @throws org.grnt.dbcommon.ResultBean.FullValuesException
	 */
	public void fullValues(ResultSet rs) throws FullValuesException;
}
